/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddNewTaskGUI.java
 *
 * Created on 12.01.2010., 13.38.36
 */

package xmlcollabclient.staro;

/**
 *
 * @author Runner
 */
import javax.swing.*;

public class AddNewTaskGUI extends javax.swing.JFrame {

    /** Creates new form AddNewTaskGUI */
    public AddNewTaskGUI() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabelMember = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jPanel2 = new javax.swing.JPanel();
        jLabelTask = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBounds(new java.awt.Rectangle(450, 250, 0, 0));
        setResizable(false);
        getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS));

        jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

        jLabelMember.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelMember.setText("Member:");
        jLabelMember.setMaximumSize(new java.awt.Dimension(50, 20));
        jLabelMember.setMinimumSize(new java.awt.Dimension(50, 20));
        jLabelMember.setPreferredSize(new java.awt.Dimension(50, 20));
        jPanel1.add(jLabelMember);

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Salebab", "Runner" }));
        jComboBox1.setMaximumSize(new java.awt.Dimension(120, 20));
        jComboBox1.setMinimumSize(new java.awt.Dimension(120, 20));
        jComboBox1.setPreferredSize(new java.awt.Dimension(120, 20));
        jComboBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox1ActionPerformed(evt);
            }
        });
        jPanel1.add(jComboBox1);

        getContentPane().add(jPanel1);

        jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

        jLabelTask.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabelTask.setText("Task:");
        jLabelTask.setMaximumSize(new java.awt.Dimension(50, 20));
        jLabelTask.setMinimumSize(new java.awt.Dimension(50, 20));
        jLabelTask.setPreferredSize(new java.awt.Dimension(50, 20));
        jPanel2.add(jLabelTask);

        jTextField1.setFont(new java.awt.Font("Verdana", 0, 11));
        jTextField1.setMargin(new java.awt.Insets(1, 3, 1, 1));
        jTextField1.setMaximumSize(new java.awt.Dimension(300, 20));
        jTextField1.setMinimumSize(new java.awt.Dimension(300, 20));
        jTextField1.setPreferredSize(new java.awt.Dimension(300, 20));
        jPanel2.add(jTextField1);

        getContentPane().add(jPanel2);

        jPanel3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/xmlcollabclient/icons/tango_assign.png"))); // NOI18N
        jButton1.setText("Assign");
        jButton1.setToolTipText("Assign task");
        jButton1.setIconTextGap(5);
        jPanel3.add(jButton1);

        getContentPane().add(jPanel3);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox1ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) throws Exception {
        try {
                // Set cross-platform Java L&F (also called "Metal")
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        }
        catch (UnsupportedLookAndFeelException e) {
           // handle exception
        }
        catch (ClassNotFoundException e) {
           // handle exception
        }
        catch (InstantiationException e) {
           // handle exception
        }
        catch (IllegalAccessException e) {
           // handle exception
        }

             java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AddNewTaskGUI().setVisible(true);
            }
        });
    }
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabelMember;
    private javax.swing.JLabel jLabelTask;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables

}
